// components/bottomNavigation.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    gameData: {
      type: String,
      value: ''
    },
    leaderboardData: {
      type: 'String',
      value: ''
    },
    prizeData: {
      type: 'String',
      value: ''
    },
    ruleData: {
      type: 'String',
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    game: true,
    leaderboard: true,
    prize: true,
    rule: true
  },
  
  /**
   * 组件的方法列表
   */
  methods: {
    _displayShow () {
      if (this.data.gameData == 'game') {
        this.setData({
          game: false
        })
      } else if (this.data.leaderboardData == 'leaderboard') {
        this.setData({
          leaderboard: false
        })
      } else if (this.data.prizeData == 'prize') {
        this.setData({
          prize: false
        })
      } else if (this.data.ruleData == 'rule'){
        this.setData({
          rule: false
        })
      }
    }
  }
})
